package com.li.druid.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * mybatisplus 注解绑定数据
 */
@Data
@TableName("stu")
public class Student{

    // 主键自增
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField("stu_name")
    private String name;
    @TableField("age")
    private Integer age;
    @TableField("grades_id")
    private Integer gradeId;
}
